
<?php echo $form->create( 'Store' ); ?>
<?php $titles = array( 1 => 'Tom', 2 => 'Dick', 3 => 'Harry' ); ?>	
<?php $subTitle = array(); ?>	
<?php echo $form->input( 'title', array( 'options' => $titles ) ) ?>
<?php //echo $form->input( 'subTitle', array( 'options' => $subTitle ) ) ?>
<label for="something">This checkbox will be send (and it will trigger Ajax reqest)</label>
<input id="something" type="checkbox" name='data[Post][something]' value='1' />
</form>
<script type="text/javascript">
function dosto() {
	alert("hai");
}
</script>

<?php 
echo $ajax->observeForm( 'StoreTestForm', 
    array(
        'url' => array( 'controller'=>'test','action' => 'index' ),
        'complete' => 'alert(json);'
    ) 
); 
?>
            